import request from "@/utils/request";

export function getApplyListInfoByAuditor() {
  return request({
    url: "/resourcevisualization/apply/getApplyListInfoByAuditor/",
    method: "get",
  });
}

export function getApplyInfoList() {
  return request({
    url: "/resourcevisualization/apply/getApplyInfoList/",
    method: "get",
  });
}

export function auditApply(data) {
  return request({
    url: "/resourcevisualization/process/auditApply",
    method: "post",
    data,
  });
}

export function assignResource(data) {
  return request({
    url: "/resourcevisualization/process/assignResource/",
    method: "post",
    data,
  });
}

export function rebackApply(data) {
  return request({
    url: "/resourcevisualization/process/rebackApply/",
    method: "post",
    data,
  });
}

export function freeResource(data) {
  return request({
    url: "/resourcevisualization/process/freeResource?applyId=" + data,
    method: "post",
  });
}

export function advanceFreeResource(data) {
  return request({
    url: "/resourcevisualization/process/advanceFreeResource",
    method: "post",
    data,
  });
}
